home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Internet / Misc / Uupc 3.1 sources.sit / uupc 3.1 sources Folder / Mac specific / host.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-04  |  2.5 KB  |  113 lines  |  [TEXT/KAHL]

  1. /*        mac.h
  2.  *
  3.  *        Macintosh version
  4.  *
  5.  */
  6.  
  7. /* on */
  8. #define MULTIFINDER    /* turn on support for running under multifinder on mac */
  9.  
  10. #ifdef MULTIFINDER
  11. extern int Check_Events(long Sleep_Time);        /* call here periodically for multifinder to work */
  12.  
  13. extern long Last_Check_Event;        /* last tick count of Check_Events call */
  14. #define MF_DELAY (6)                /* ticks between event checks */
  15. #endif
  16.  
  17. /* on */
  18. #define Upgrade     /* turn on upgrades to standard uupc for mac
  19.                      * \number (variable timeout) feature for L.sys (systems) file.
  20.                      * fixed BREAK sending.
  21.                      * alen@crash 10/22/89.
  22.                      * garym@crash implemented L.sys blank, comment and continuation
  23.                      * lines 10/27/89.
  24.                      */
  25. /* on */
  26. #define BREAK        /* enable BREAKx send string
  27.                      */
  28. /* on */
  29. #define SLAVELOG    /* so slave mode will put out Username: & Password:
  30.                      * prompts.
  31.                      */
  32.  
  33. /* on */
  34. #define DEF_FRAME    /* to enable default ring around default button in dialog */
  35.  
  36. typedef int boolean;
  37.  
  38. #include <time.h>
  39. #include <errno.h>
  40. #include <ctype.h>
  41. #include <string.h>
  42. #ifdef THINK_C
  43. # include <stdlib.h>
  44. # include <unix.h>
  45. #include <Packages.h>
  46. #include <Connections.h>
  47. #endif THINK_C
  48.  
  49. #define SAME     0
  50. #define    FALSE    0
  51. #define    TRUE    1
  52.  
  53. #define    TFILENAME    "tmpfile.%.7ld"
  54. #define    SFILENAME    "SEQF"
  55.  
  56. #define SEPCHAR        '/'    /* path separater character        */
  57. #define DIRCHAR        ':' /* Mac directory-separator character */
  58. #define SIGFILE        ".signature"    /* file containing signature    */
  59. #define COPYFILE    "mail.sent"    /* copy of sent mail    */
  60. #define NEWSDIR        "rnews.%02d%02d%02d.%02d%02d%02d.%03d"
  61.  
  62. #define HOSTINIT    macinit()    /* name of function used to initialize    */
  63.  
  64. #define FILEMODE(f)
  65.  
  66. #define    CALLFILE    "C."
  67. #define    XQTFILE        "X."
  68. #define STATFILE    "ST."
  69.  
  70. #include "genv.h"
  71. #define     index    strchr
  72. #define  rindex    strrchr
  73. extern    char *fgets();
  74. extern    char *index();
  75. extern    char *rindex();
  76.  
  77. extern     int    debuglevel;                  /* debugging level */
  78. extern    time_t theTime;
  79.  
  80. typedef enum {Idle_System=1, Call_Systems, Cancel_Call, Quit_Program,
  81.               Abort_Program, Shutdown_Program, Startup_Program};
  82. extern  int Main_State;
  83.  
  84. typedef int datalist[61];
  85.  
  86. typedef struct {
  87.     char min[40];
  88.     char hour[40];
  89.     char day[40];
  90.     char month[40];
  91.     char weekday[40];
  92.     char name[40];
  93.     int retrytime;    /* minutes between retries */
  94. } schedule_record;
  95.     
  96. typedef struct {
  97.     datalist min;
  98.     datalist hour;
  99.     datalist day;
  100.     datalist month;
  101.     datalist weekday;
  102. } schedule_list_record;
  103.  
  104. #ifdef Upgrade
  105. extern long int systimeout;
  106. #endif Upgrade
  107.  
  108.  
  109. #include "uupcproto.h"
  110. #include "unixlibproto.h"
  111. #include "mailproto.h"
  112.  
  113.